#ifndef CFONTCLASS_H
#define CFONTCLASS_H

#include "TextureClass.h"

class CFontClass
{
	struct FontType
	{
		float fLeft;
		float fRight;
		int nSize;
	};

	struct VertexType
	{
		D3DXVECTOR3 d3dPosition;
		D3DXVECTOR2 d3dTexture;
	};

	FontType* m_pFont;
	CTextureClass* m_pTexture;

	bool LoadFontData(char* cFontFileName);
	void ReleaseFontData();
	bool LoadTexture(ID3D11Device* pDevice, WCHAR* pwszFileName);
	void ReleaseTexture();

public:
	CFontClass(void);
	CFontClass(const CFontClass&);
	~CFontClass(void);

	bool Initialize(ID3D11Device* pDevice, char* cFontFileName, WCHAR* pwszFileName);
	void ShutDown();
	ID3D11ShaderResourceView* GetTexture();
	void BuildVertexArray(void* pVertices, char* cSentence, float fDrawX, float fDrawY);
};

#endif